<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ taglib prefix="template" tagdir="/WEB-INF/tags" %>

<fmt:setBundle basename="StripesResources" />
<tbody id="updateProducts">
    <c:forEach var="product" items="${products}" varStatus="status">
        <tr>
            <td><span><input type="checkbox" name="products[${status.index}].id" value="${product.id}"  /></span></td>
            <td>
                <c:if  test="${product.active}">
                    <span class="glyphicon glyphicon-ok" />
                </c:if>

                <c:if  test="${!product.active}">
                    <span class="glyphicon glyphicon-remove" />
                </c:if>

            </td>
            <td>${product.name}</td>
            <td>${product.quantity}</td>

            <td>${product.plu}</td>
            <td>${product.price}</td>
            <td>${product.verified}</td>
            <td>${product.verifiedBy.name}</td>
        </tr>
    </c:forEach>
</tbody>

